package com.hqx.oop.root;

public class Child extends Base{
   public static int s;
   private int a;
   static {
       System.out.println("子类静态代码块,s:"+s);
   }

    {
        System.out.println("子类代码块,a:"+a);
    }
    public Child() {
        System.out.println("子类构造方法,a:"+a);
        a = 20;
   }

    protected void step(){
        System.out.println("child s: " + s +", a: "+a);
    }
}
